package server;

/**
 * this class represents a DataSet recorded by the mobile receiver
 * @author nemi
 *
 */
public class DataSet {
	public DataSet(String spotId, int seqNr, int rssi, int lqi,
			String time, String sendingTime) {
		super();
		this.spotId = spotId; //ID of the fixed Spot this DataSet was received from
		this.seqNr = seqNr; //the sequence number
		this.rssi = rssi; //the RSSI value
		this.lqi = lqi; //the LQI value
		this.time = time; //time when the beacon was received at the 
		this.atServerTime = sendingTime;		
	}
	private String spotId;
	private int seqNr;
	private int rssi;
	private int lqi;
	private String time;
	private String atServerTime;
	private boolean newpacket=false;
	
	


	public DataSet(){
		this.spotId="";
		this.seqNr = 0;
		this.rssi = 0;
		this.lqi = 0;
		this.time = "";
		this.atServerTime = "";	
	}



	public void setSpotId(String spotId) {
		this.spotId = spotId;
	}
	public String getSpotId() {
		return spotId;
	}
	public void setSeqNr(int seqNr) {
		this.seqNr = seqNr;
	}
	public int getSeqNr() {
		return seqNr;
	}
	public void setLQI(int lQI) {
		lqi = lQI;
	}
	public int getLQI() {
		return lqi;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getTime() {
		return time;
	}
	public void setSendingTime(String sendingTime) {
		this.atServerTime = sendingTime;
	}
	public String getSendingTime() {
		return atServerTime;
	}
	public void setRssi(int rssi) {
		this.rssi = rssi;
	}
	public int getRssi() {
		return rssi;
	}


	public void setNewpacket(boolean newpacket) {
		this.newpacket = newpacket;
	}


	public boolean isNewpacket() {
		return newpacket;
	}
	
}
